package com.example.schoolmanage.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class TestController {
    @RequestMapping("/hello")
    @PreAuthorize("hasRole('vip2')")
    public String hello(){
        return "hello";
    }

    @RequestMapping("/hi")
    public String hi(){
        return "hi";
    }





}